package com.xh3140.xwidget.table;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;

public class TableTextCell extends AppCompatTextView {

  public TableTextCell(@NonNull Context context) {
    super(context);
  }

  public TableTextCell(@NonNull Context context, @Nullable AttributeSet attrs) {
    super(context, attrs);
  }

  public TableTextCell(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
    super(context, attrs, defStyleAttr);
  }

  public static TableTextCell create(@NonNull Context context, @NonNull TableCellConfig<TableTextCell> config) {
    final TableTextCell cell = new TableTextCell(context);
    config.configTableCell(cell);
    return cell;
  }
}
